<?php

namespace app\model;

use app\BaseModel;
use think\model\relation\BelongsTo;

/**
 * 量表包
 */
class RatingScalePackModel extends BaseModel
{
    protected $name = 'rating_scale_pack';

    /**
     * 量表
     * @return BelongsTo
     */
    public function RatingScale(): BelongsTo
    {
        return $this->belongsTo(RatingScaleModel::class,'rating_scale_id')->bind([
            'rating_scale_name'=>'name'
        ]);
    }
}